package tech.aistar.entity;


import java.io.Serializable;

public class Video implements Serializable {

  private Integer id;
  private String title;
  private String content;
  private User user;

  public Video() {
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public User getUser() {
    return user;
  }

  public void setUser(User user) {
    this.user = user;
  }

  public Video(String title, String content) {
    this.title = title;
    this.content = content;
  }

  @Override
  public String toString() {
    final StringBuilder sb = new StringBuilder("Video{");
    sb.append("id=").append(id);
    sb.append(", title='").append(title).append('\'');
    sb.append(", content='").append(content).append('\'');
    sb.append('}');
    return sb.toString();
  }
}
